Skip to content

Instantly share code, notes, and snippets.

@AnthonyFJGarner
AnthonyFJGarner / mean_reversion.ipynb
Last active June 2, 2024 21:53
A Simple Mean Reversion System in Simple Python Code
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@palumbo
palumbo / Download Images.gs
Created June 9, 2022 23:55
The code I used to download images into a Google Sheets cell or download images into a Google Drive folder.
function insertImage() {
let sheet = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet();
let lastRow = sheet.getLastRow();
for (let i = 0; i < lastRow-1; i++) {
let url = sheet.getRange(2+i,1).getValue();
let image = SpreadsheetApp.newCellImage().setSourceUrl(url);
sheet.getRange(2+i,2).setValue(image);
}
@vrbadev
vrbadev / Debian_12_ROS_Noetic_Installation.md
Last active June 2, 2024 21:47
[TUTORIAL] How to install ROS Noetic on Debian 12 Bookworm

Tutorial: How to install ROS Noetic on Debian 12 Bookworm

This is a short tutorial on building ROS Noetic in the Debian 12 ("bookworm") fresh-install environment. There are several packages not available (yet) from the official apt repositories, which have to be either built from source or installed from older Debian 11 ("bullseye") repository DEB packages. Several packages also have to be downgraded to maintain compatibility.

Preparation

  1. Add ROS repository for older Debian 10 ("buster") to our apt sources list:
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu buster main" > /etc/apt/sources.list.d/ros-latest.list'
sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
@ygotthilf
ygotthilf / jwtRS256.sh
Last active June 2, 2024 21:46
How to generate JWT RS256 key
ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key
# Don't add passphrase
openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub
cat jwtRS256.key
cat jwtRS256.key.pub
@BartMassey
BartMassey / github-unghost.sh
Created May 31, 2024 15:52
Mark all notifications as read ("Ghost notification" remover)
#!/bin/sh
# Mark all notifications as read, including "ghost" notifications.
# Works on Linux, requires a "classic" auth token be present in `~/.github-oauthtoken`
# and also that `gh` is installed. You could presumably use `gh auth login` instead
# if you want to authenticate that way.
#
# Works for me, use at your own risk.
#
# https://github.com/orgs/community/discussions/6874
# https://docs.github.com/en/rest/activity/notifications?apiVersion=2022-11-28#mark-notifications-as-read
@mcu8
mcu8 / README.md
Last active June 2, 2024 21:38
Running A Hat in Time Editor on Linux

Running A Hat in Time Modding Tools on Linux

Tested on Proton-GE 25 and Manjaro Linux

(WIP, may include more details for beginners later)

You need to install protontricks first! (I used yay -s protontricks since I'm using ArchLinux-based distro)

Then, you need to find your Steam library folder, where the compatdata is stored (use google if you don't know how)

Usually it is in $HOME/.steam/root - you can assing it into the $steamdir variable in your terminal: steamdir="$HOME/.steam/root"

@scyto
scyto / proxmox.md
Last active June 2, 2024 21:36
proxmox cluster proof of concept

ProxMox Cluster - Soup-to-Nutz

aka what i did to get from nothing to done.

note: these are designed to be primarily a re-install guide for myself (writing things down helps me memorize the knowledge), as such don't take any of this on blind faith - some areas are well tested and the docs are very robust, some items, less so). YMMV

Purpose of Proxmox cluster project

Required Outomces of cluster project

@KillyMXI
KillyMXI / README.md
Last active June 2, 2024 21:35
Obsidian live-preview list threading and highlight
@mwilliammyers
mwilliammyers / updatedb.conf
Last active June 2, 2024 21:35
/etc/updatedb.conf
# locate --regex '.*\/(\w+[^\.]\w+$)+'
PRUNE_BIND_MOUNTS="yes"
PRUNENAMES=".git .bzr .hg .svn Trash Cache cache .cache logs fonts font Frameworks atom .atom apm .apm .ansible .idea libreoffice node_modules .node-gyp .npm ipynb_checkpoints dist-packages site-packages .eggs build help icons modules samples Template Templates template templates snapd locale .pycharm_helpers pycharm_helpers .google-chrome google-chrome __pycache__ pack generated_completions .cargo"
PRUNEPATHS="/tmp /var/spool /media /var/lib/os-prober /var/lib/ceph /home/.ecryptfs /var/lib/schroot /usr/share/man /usr/share/perl5 /usr/share/perl /usr/share/doc /usr/share/sound /opt/pycharm-professional"
PRUNEFS="NFS nfs nfs4 rpc_pipefs afs binfmt_misc proc smbfs autofs iso9660 ncpfs coda devpts ftpfs devfs devtmpfs fuse.mfs shfs sysfs cifs lustre tmpfs usbfs udf fuse.glusterfs fuse.sshfs curlftpfs ceph fuse.ceph fuse.rozofs ecryptfs fusesmb"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define TYPE_VALUEARRAY 0
#define TYPE_POINTERARRAY 1
typedef struct value
{
long Type, Rank, Dimensions[3], Elements[2];